<template>
	<view class="p20">
		<u-empty v-if="!list.length" />
		<view class="mb20" v-for="(item,index) in list" :key="index"
			@click="$jump('/pages/index/hospitalDetails',{hospital_id:item.hospital_id||item.id,master_id:item.master_id})">
			<hospital :item="item" />
		</view>
	</view>
</template>

<script>
	export default {
		name: "hospitalList",
		props: {
			list: {
				default: ''
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.cyan {
		background: rgba(0, 190, 195, 0.07);
		border-radius: 8rpx;
		color: #00bec3;
	}

	.yellow {
		background: rgba(234, 135, 68, 0.07);
		border-radius: 8rpx;
		color: #ea8744;
	}

	.blue {
		background: rgba(45, 168, 253, 0.07);
		border-radius: 8rpx;
		color: #2da8fd;
	}
</style>